{% extends "stat_base.html" %}

{% block main2 %}

<div class="content-block">
    {% block content %}
    <form method="post" action=".">
    {% if form.errors %}
        <div class="form-row">
            <div>{{ form.errors }}</div>
        </div>
    {% endif %}
    <div style="float:left;width:60%;"> 
        <div class="fieldset" style="margin-right:10px;">
            <h1>Descrizione</h1>
    
            <div class="form-col">
                <div class="form-row" style="margin-right:5px;">
                    <label>{{ form.url.label }}*</label>
                    <div>{{ form.url }}</div>
                </div>
            
                <div class="form-row" style="margin-right:5px;display:none;">
                    <label>{{ form.status.label }}</label>
                    <div>{{ form.status }}</div>
                </div>
            </div>
            
            <div class="form-row">
                <label>{{ form.title.label }}*</label>
                <div>{{ form.title }}</div>
            </div>
            <div class="form-row" style="display:none">
                <label>{{ form.order.label }}</label>
                <div>{{ form.order }}</div>
            </div>
            
            <div class="form-row">
                <label>Sezione*</label>
                <div>{{form.section}}</div>
            </div>

        </div>
    </div>
    
    <div style="float:left;width:40%;">
        <div class="fieldset">
            <h1>SEO</h1>
            
            <div class="form-row">
                <label>{{ form.slug.label }}</label>
                <div>{{ form.slug }}</div>
            </div>
            
            <div class="form-row">
                <label>{{ form.keywords.label }}</label>
                <div>{{ form.keywords }}</div>
            </div>
        </div>
        
        <div class="fieldset">
            <h1>Ownership</h1>
            
            <div class="form-row">
                <label>{{ form.owner.label }}</label>
                <div>{{ form.owner }}</div>
            </div>
            
            <div class="form-row">
                <label>{{ form.owner_alias.label }}</label>
                <div>{{ form.owner_alias }}</div>
            </div>
            
            <div class="form-row">
                <label>{{ form.groupAdd.label }}</label>
                <div>{{ form.groupAdd }}</div>
            </div>
            
            <div class="form-row">
                <label>{{ form.groupRemove.label }}</label>
                <div>{{ form.groupRemove }}</div>
            </div>
            <div class="form-row">
                <label>{{ form.status.label }}*</label>
                <div>{{ form.status }}</div>
            </div>
        </div>  
    </div>
    
    <div class="submit-row" style="clear:both">
        <input type="submit" value="{{buttonText}} stat" />
    </div> 
    </form>
    {% endblock %}
</div>
{% endblock %}
